import QtQuick 1.0


Rectangle {
    id: listItem
    width: parent.width
    height: 80
    color: "#0D1B1E26"

    property int iId
    property int index
    property alias  name: listItemNameText.text
    //property alias  icon: listItemIcon.source
    //property alias  price: priceText.text
    //property alias  currency: priceCurrency.text

    Rectangle {
        id: listItemSeparator
        width: parent.width
        height: 1
        anchors.bottom: parent.bottom
        x: 0
        color: "#d2d2d2"
    }

    Row {
        height: 60
        spacing: 10
        anchors.left: parent.left
        anchors.leftMargin: 10
        anchors.right: parent.right
        anchors.rightMargin: 10
        anchors.top: parent.top
        anchors.topMargin: 10

        Rectangle {
            id: arrowIconContainer
            width: 20
            height: 50
            color: "#00000000"

            Image {
                id: arrowIcon
                width: parent.width
                height: parent.height
                anchors.top: parent.top
                anchors.topMargin: 5
                fillMode: Image.Stretch
                source: "../images/icon_arrow_left.png"
            }
        }

        Rectangle {
            id: listItemName
            width: 250
            height: parent.height
            color: "#00000000"

            Text {
                id: listItemNameText
                anchors.fill: parent
                font.family: nokiaStandard.name
                font.pixelSize: 22
                color: "#393939"
                verticalAlignment: Text.AlignVCenter
                elide: Text.ElideRight
                smooth: true
            }
        }


        Rectangle {
            id: deleteIconContainer
            width: 50
            height: 50
            color: "#00000000"

            Image {
                id: deleteIcon
                width: parent.width
                height: parent.height
                anchors.top: parent.top
                anchors.topMargin: 5
                fillMode: Image.Stretch
                source: "../images/icon_delete.png"
            }
        }
    }
}
